﻿using Biotech.Utils;
using software.Common.MVVM;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project.B12.Model.Models
{
 
    public class MicroplateMes:ObservableObject
    {
        public MicroplateMes(string _name)
        {
            name = _name;
        }

        /// <summary>
        /// 药敏板类型名称
        /// </summary>
        public string name { get; set; }


        /// <summary>
        /// 药敏板布板信息
        /// </summary>
        public List<Layout> antibiotic_concentration  { get; set; }

        /// <summary>
        /// 预留药敏板信息
        /// </summary>
        public string Message;

        /// <summary>
        /// 药敏板尺寸
        /// </summary>
        public short Type;

        /// <summary>
        /// 药敏板拍照处理信息
        /// </summary>
        public short Map;

        private string? volume;
        /// <summary>
        /// 加液体积，50/100/150/200/250
        /// </summary>
        public string? Volume
        {
            get { return volume; }
            set
            {
                volume = value;
                this.RaisePropertyChanged();
            }
        }

        public class Layout : ObservableObject
        {
            private int index;
            /// <summary>
            /// 孔位索引
            /// </summary>
            public int Index 
            {
                get { return index; }
                set
                {
                    index = value;
                    this.RaisePropertyChanged();
                }
            }

            private string? antibiotic;
            /// <summary>
            /// 药物和浓度信息
            /// </summary>
            public string? Antibiotic 
            {
                get { return antibiotic; }
                set
                {
                    antibiotic = value;
                    this.RaisePropertyChanged();
                }
            }
        }
        
    }
}
